﻿package cn.whdream.info;

public class InfoDemo {
	
	public static void main(String[] args) throws InterruptedException {
		MyThread thread = new MyThread();
		Thread proxy = new Thread(thread,"挨踢");
		proxy.setName("test");
		System.out.println(proxy.getName());
		System.out.println(Thread.currentThread().getName());
		proxy.start();
		System.out.println("启动后"+proxy.isAlive());
		Thread.sleep(10);
		thread.stopThread();
		Thread.sleep(10);
		System.out.println("停止后"+proxy.isAlive());
	}
}
